<div class="pagination">
<a class="number disable" title="Trang đầu" href="{$begin}">&lt;&lt;</a>
{if $page <= $begin}
    <a class='number disable' title='Về trang trước' href='{$begin}'> &lt; </a>
{else}
    <a class='number disable' title='Về trang trước' href='{$url}'> &lt; </a>
{/if}
{if $begin > 1 }...{/if}

{for $i=$begin to $end}
    {if $i == $page}
        <a class='number current' href='{$i}' title='Trang {$i}'>{$i}</a>
    {else}  
        <a class='number' href='{$i}' title='Trang {$i}'>{$i}</a>
    {/if}
{/for}
{if $end < $sum}...{/if}
{if $page >= $end}			
    <a class='number'  href='{$page}' title='Dến trang sau'>&gt;</a>
{else}	
    <a class='number'  href='{$page+1}' title='Dến trang sau'>&gt;</a>
{/if}
<a class="number" href='{$sum}' title='Trang cuối'>&gt;&gt;</a> </div>